/**
 * @ProjectName: 
 * @Copyright: 2014 lisheng  All Right Reserved.
 * @address: toughheart@163.com
 * @date: 2015年10月18日 下午9:55:33
 * @Description: 本内容未经本人允许禁止使用、转发.
 */

package com.ls.fw.web.file.bean;

import java.io.File;

import org.apache.commons.lang3.StringUtils;

/**
 * 
 * @author lisheng
 * @date 2015年10月18日 下午9:55:33
 * @version V1.0
 */
public class DownInfo {

	private String name = "";
	private String saveName = "";
	private String path = "";
	public String getName() {
		if(StringUtils.isBlank(name)){
			File f = new File(this.getPath());
			name = f.getName();
		}
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSaveName() {
		if(StringUtils.isBlank(saveName)){
			saveName = this.getName();
		}
		return this.saveName;
	}
	public void setSaveName(String saveName) {
		this.saveName = saveName;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}

}
